import { BrowserRouter } from "react-router-dom";
import Router from "@/router/index";
import { useTitle, useFavicon } from "react-use";
import AuthRouter from "./router/utils/authrouter";
import { ConfigProvider, theme } from "antd";
import zhCN from "antd/lib/locale/zh_CN";
// import enUS from "antd/lib/locale/en_US";

const App = () => {
  useTitle("陆烟儿丶");
  useFavicon("/fav/luyan.ico");
  return (
    <BrowserRouter>
      <ConfigProvider
        locale={zhCN}
        theme={{ algorithm: theme.defaultAlgorithm }}
      >
        <AuthRouter>
          <Router></Router>
        </AuthRouter>
      </ConfigProvider>
    </BrowserRouter>
  );
};

export default App;
